package test_11_23;

public class test11_23_2 {
    public static int add(int a,int b)
    {
        System.out.println("两个数的加法：");
        return a+b;
    }
    public static double add(double c,double d)
    {
        System.out.println("两个数的加法：");
        return c+d;
    }

    public static void main(String[] args) {
        int num1 = 10;
        int num2 = 20;
        double num3 = 2.5;
        double num4 = 3.5;
        int result1 = add(num1,num2);
        double result2 = add(num3,num4);
        System.out.println(result1);
        System.out.println(result2);
    }
}
